<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>工程竣工验收 - 监督条件核查</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta http-equiv="Expires" CONTENT="0">
    <meta http-equiv="Cache-Control" content="no-siteapp,no-transform,no-store, no-cache, must-revalidate">
    <meta http-equiv="Pragma" content="no-cache">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="/static/css/font.css">
    <link rel="stylesheet" href="/static/css/weadmin.css">
    <script type="text/javascript" src="/lib/layui/layui.js" charset="utf-8"></script>
    <link rel="stylesheet" href="/static/css/buildUnit/common.css">
    <style>
        body {
            height: auto;
        }

        .content {
            padding: 20px;
        }
        .layui-container {
            padding-top: 20px;
            width: auto;;
        }

        /*单元格备注样式*/
        .layui-table td.tdBz {
            text-align: left;
            padding-left: 0;
            border-left: none;
            color: #aaa;
        }

        .padNone .layui-form-select .layui-input {
            padding-right: 0;
        }

        .hide {
            display: none;
        }
    </style>
</head>
<body>
<div class="layui-container">
    <form id="form" class="layui-form layui-form-pane" action="" lay-filter="example">
        <input type="hidden" name="prjId" class="formData" value="">
        <input type="hidden" name="id" class="formData" value="">


<!--        <div class="layui-collapse">-->
<!--            <div class="layui-colla-item">-->
<!--                <h2 class="layui-colla-title">工程竣工验收监督条件核查记录</h2>-->
<!--                <div class="layui-colla-content layui-show">-->
                    <table class="layui-table">
                        <thead>
                        <tr>
                            <td width="50%">核查内容</td>
                            <td width="60%">核查结果</td>
                        </tr>
                        </thead>
                        <tbody>

                        <tr>
                            <td class="th8">1、建设工程施工许可证</td>
                            <td >
                                <input class="formData" type="radio" name="c1" value="1" title="有">
                                <input class="formData" type="radio" name="c1" value="0" title="无">
                            </td>
                        </tr>
                        <tr>
                            <td class="th8">2、施工单位的工程竣工报告</td>
                            <td ><input class="formData" type="radio" name="c2" value="1" title="有">
                                <input class="formData" type="radio" name="c2" value="0" title="无"></td>
                        </tr>
                        <tr>
                            <td class="th8">3、监理单位的工程质量评估报告</td>
                            <td ><input class="formData" type="radio" name="c3" value="1" title="有">
                                <input class="formData" type="radio" name="c3" value="0" title="无"></td>
                        </tr>
                        <tr>
                            <td class="th8">4、勘察、设计单位的质量检查报告</td>
                            <td ><input class="formData" type="radio" name="c4" value="1" title="有">
                                <input class="formData" type="radio" name="c4" value="0" title="无"></td>
                        </tr>
                        <tr>
                            <td class="th8">5、抽查监理单位的监理资料，未发现异常</td>
                            <td ><input class="formData" type="radio" name="c5" value="1" title="是">
                                <input class="formData" type="radio" name="c5" value="0" title="否"></td>
                        </tr>
                        <tr>
                            <td class="th8">6、抽查监理单位的技术档案和施工管理资料，未发现异常</td>
                            <td ><input class="formData" type="radio" name="c6" value="1" title="是">
                                <input class="formData" type="radio" name="c6" value="0" title="否"></td>
                        </tr>
                        <tr>
                            <td class="th8">7、抽查工程使用的主要建筑材料、建筑构配件和设备的进场试验报告，未发现异常</td>
                            <td ><input class="formData" type="radio" name="c7" value="1" title="是">
                                <input class="formData" type="radio" name="c7" value="0" title="否"></td>
                        </tr>
                        <tr>
                            <td class="th8">8、施工单位签署的工程质量保修书</td>
                            <td ><input class="formData" type="radio" name="c8" value="1" title="是">
                                <input class="formData" type="radio" name="c8" value="0" title="否"></td>
                        </tr>
                        <tr>
                            <td class="th8">9、建设单位按合同约定支付工程款证明</td>
                            <td ><input class="formData" type="radio" name="c9" value="1" title="是">
                                <input class="formData" type="radio" name="c9" value="0" title="否"></td>
                        </tr>
                        <tr>
                            <td class="th8">10、住宅工程分户验收合格，建设单位按户出具《住宅工程质量分户验收表》</td>
                            <td ><input class="formData" type="radio" name="c10" value="1" title="是">
                                <input class="formData" type="radio" name="c10" value="0" title="否"></td>
                        </tr>
                        <tr>
                            <td class="th8">11、主管部门责令整改问题全部整改完毕</td>
                            <td ><input class="formData" type="radio" name="c11" value="1" title="是">
                                <input class="formData" type="radio" name="c11" value="0" title="否"></td>
                        </tr>
                        <tr>
                            <td class="th8">核查结论</td>
                            <td ><input class="formData" type="radio" name="conclusion" value="1" title="符合验收条件">
                                <input class="formData" type="radio" name="conclusion" value="0" title="不符合验收条件"></td>
                        </tr>

                        </tbody>
                    </table>
<!--                </div>-->
<!--            </div>-->
<!--        </div>-->

    </form>
</div>
<script src="/static/js/main.js"></script>
<script type="text/javascript">
    var $;
    layui.use(['jquery', 'element', 'form', 'laydate', 'configure', 'configureCom', 'selectFun', 'bluebird', 'replaceStr', 'jsDictFile', 'mapExtend'], function () {
        $ = layui.jquery;
        var element = layui.element;
        var form = layui.form;
        var configure = layui.configure;
        var table = layui.table;
        var configureCom = layui.configureCom;
        var laydate = layui.laydate;
        var selectFun = layui.selectFun;
        var sessionFun = layui.sessionFun;//存储session

        var prjId = sessionFun.get('prjId');
        configureCom.getAjax(configure.CPT_ACCEPTANCE_CONDITION_VIEW_API,{prjId:prjId}).then(function(res){
            if(!res.data){
                res.data = { prjId: prjId};
            }
            form.val('example', res.data);
        })

    });

    function getData() {
        return new Promise(function (res, rej) {
            var data = {};
            if (!window.formVerifyFun()) {
                //return false;
            }

            $('.formData').each(function (index, item) {
                var key = $(item).attr('name');
                var type = $(item).attr('type');
                if(type=='radio'){
                    data[key] = $("input[name='"+key+"']:checked").val();
                }else{
                    data[key] = $(item).val();
                }

            });
            res({result: data});
        });
    }

</script>
</body>
</html>
